package br.com.inovati.linkers.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.com.inovati.linkers.entity.Enderecos;
import br.com.inovati.linkers.services.EnderecoServiceRemote;

@Stateless
public class EnderecoServiceImpl implements EnderecoServiceRemote {
	
	@PersistenceContext(unitName="linkers")
	private EntityManager em;
	
	@Override
	public Enderecos inserir(Enderecos endereco) {
		em.persist(endereco);
		return endereco;
	}
	
}
